package bairui.international.console.web.controller.barter.product;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageFilterInfo;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageModuleBody;

/**
 *
 * Module_Page
 *
 */
class Module_Page{

	/**
	 * 分页模块
	 */
	public Module module(
		com.lianjing.sh.spring.web.controller.enhance.module.feature.PageModuleFeatureSupport moduleFeature,
		C_Barter_Product_Page_Page.Page.Operate c_Barter_Product_Page_Page_Page_Operate
	,	C_Barter_Product_Import_ExcelImport.ExcelImport.Operate c_Barter_Product_Import_ExcelImport_ExcelImport_Operate
	,	C_Barter_Product_Export_ExcelExport.ExcelExport.Operate c_Barter_Product_Export_ExcelExport_ExcelExport_Operate
	,	C_Barter_Product_Edit_EditAccess.EditAccess.Operate c_Barter_Product_Edit_EditAccess_EditAccess_Operate
	,	C_Barter_Product_Delete_Delete.Delete.Operate c_Barter_Product_Delete_Delete_Delete_Operate
	,	C_Barter_Product_Publish_Submit.Submit.Operate c_Barter_Product_Publish_Submit_Submit_Operate
	,	C_Barter_Product_Up_Submit.Submit.Operate c_Barter_Product_Up_Submit_Submit_Operate
	,	C_Barter_Product_Down_Submit.Submit.Operate c_Barter_Product_Down_Submit_Submit_Operate
	){
		return
			new Module(
					new ModuleHead("列表")
						.addOperate(
							c_Barter_Product_Import_ExcelImport_ExcelImport_Operate
								.defaultComment("导入")
						)
						.addOperate(
							c_Barter_Product_Export_ExcelExport_ExcelExport_Operate
								.defaultComment("导出")
						)
					, 
					new PageModuleBody(
							moduleFeature,
							Page_OutputInfo.outputInfo(),
							new PageFilterInfo(
									Page_BaseFilter.info(), 
									Page_OutputInfo.pageInfo(), 
									Page_OutputInfo.orderInfo()
								),
							c_Barter_Product_Page_Page_Page_Operate
						)
						.addListOperate(
							c_Barter_Product_Edit_EditAccess_EditAccess_Operate
								.defaultComment("详情")
						)
						.addListOperate(
							c_Barter_Product_Delete_Delete_Delete_Operate
								.defaultComment("删除")
						)
						.addListOperate(
							c_Barter_Product_Publish_Submit_Submit_Operate
								.defaultComment("发布")
						)
						.addListOperate(
							c_Barter_Product_Up_Submit_Submit_Operate
								.defaultComment("上架")
						)
						.addListOperate(
							c_Barter_Product_Down_Submit_Submit_Operate
								.defaultComment("下架")
						)
						.setIdentifier("id")
				);
	}
	
	public Module module(
		C_Barter_Product_Page_Page.Page.Operate c_Barter_Product_Page_Page_Page_Operate
	,	C_Barter_Product_Import_ExcelImport.ExcelImport.Operate c_Barter_Product_Import_ExcelImport_ExcelImport_Operate
	,	C_Barter_Product_Export_ExcelExport.ExcelExport.Operate c_Barter_Product_Export_ExcelExport_ExcelExport_Operate
	,	C_Barter_Product_Edit_EditAccess.EditAccess.Operate c_Barter_Product_Edit_EditAccess_EditAccess_Operate
	,	C_Barter_Product_Delete_Delete.Delete.Operate c_Barter_Product_Delete_Delete_Delete_Operate
	,	C_Barter_Product_Publish_Submit.Submit.Operate c_Barter_Product_Publish_Submit_Submit_Operate
	,	C_Barter_Product_Up_Submit.Submit.Operate c_Barter_Product_Up_Submit_Submit_Operate
	,	C_Barter_Product_Down_Submit.Submit.Operate c_Barter_Product_Down_Submit_Submit_Operate
	){
		return this.module(
				null,
				c_Barter_Product_Page_Page_Page_Operate
	,			c_Barter_Product_Import_ExcelImport_ExcelImport_Operate
	,			c_Barter_Product_Export_ExcelExport_ExcelExport_Operate
	,			c_Barter_Product_Edit_EditAccess_EditAccess_Operate
	,			c_Barter_Product_Delete_Delete_Delete_Operate
	,			c_Barter_Product_Publish_Submit_Submit_Operate
	,			c_Barter_Product_Up_Submit_Submit_Operate
	,			c_Barter_Product_Down_Submit_Submit_Operate
			);
	}
	
	
	/**
	 * 输出模型
	 */
	

}
